<div class="card">
    <div class="card-header">推荐文章</div>
    <div class="card-body">

        {if $arrArticle}
{loop $arrArticle $key $item}
            {if $item['photo']}
            <div class="row border-bottom mb-3 pb-3">

                <div class="col-md-4">
                    <a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">
                        <img class="mw-100" src="{$item['photo_url']}" />
                    </a>
                </div>
                <div class="col-md-8">

                    <div class="fs18 font-weight-bold">
                        <a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{$item['title']}</a>
                        {if $item['istop']=='1'}
                        <img src="{SITE_URL}public/images/ding.png" width="24" height="24" title="[置顶]" alt="[置顶]" />
                        {/if}
                    </div>

                    <div class="fs12 text-black-50"><a class="text-black-50" href="{tsUrl('user','space',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a> 发表于 {$item['addtime']}</div>

                    <div class="text-black-50 mt-1">{if $item['gaiyao']}{tsTitle($item['gaiyao'])}{else}暂无概要{/if} (<a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">查看全文</a>)</div>





                    <div class="of c9 mt-3 fs12">

                        <div class="float-left">
                            分类：<a href="{tsUrl('article','cate',array('id'=>$item['cate']['cateid']))}">{$item['cate']['catename']}</a>
                        </div>
                        <div class="float-right">

                            <i class="bi bi-eye"></i> {$item['count_view']}
                            <i class="bi bi-chat-text ml-3"></i> {$item['count_comment']}


                        </div>

                    </div>







                </div>

            </div>


            {else}

            <div class="fs18 font-weight-bold">
                <a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{$item['title']}</a>
                {if $item['istop']=='1'}
                <img src="{SITE_URL}public/images/ding.png" width="24" height="24" title="[置顶]" alt="[置顶]" />
                {/if}
            </div>

            <div class="fs12 text-black-50"><a class="text-black-50" href="{tsUrl('user','space',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a> 发表于 {$item['addtime']}</div>

            {if $item['score']==0}
            <div class="text-black-50 mt-1">{if $item['gaiyao']}{$item['gaiyao']}{else}暂无概要{/if} (<a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">查看全文</a>)</div>
            {/if}




            <div class="of c9 mt-3 fs12 mb-3 border-bottom pb-3">

                <div class="float-left">
                    分类：<a href="{tsUrl('article','cate',array('id'=>$item['cate']['cateid']))}">{$item['cate']['catename']}</a>
                </div>
                <div class="float-right">

                    <i class="bi bi-eye"></i> {$item['count_view']}
                    <i class="bi bi-chat-text ml-3"></i> {$item['count_comment']}
                </div>

            </div>



            {/if}



{/loop}

{else}

<div class="c9">暂无推荐文章</div>

{/if}

</div>
</div>